#pragma once
#include<iostream>
#include<fstream>
#include "worker.h"
using std::cout, std::cin, std::ios, std::endl, std::string;

#define FILENAME "../workerfile.txt"

class WorkerManager{
public:
    int workerNum;
    Worker **workerArray;

    WorkerManager();
    ~WorkerManager();

    void exitSystem();
    void showSystem();

    void addWorker();
    void showWorker();
    void saveFile();
    void initWorker();
    int countWorkerNum();
    int isExistWorker(int id);
    void deleteWorker();
    void alterWorker();
    void sereachWorker();
    void randWorker();
    void removeWorkerList();
};